<script setup lang="ts">
function toDetail(url: string) {
  window.open(url);
}
</script>

<template>
  <div class="footer-box">
    <div class="footer">
      <ul>
        <li
          class="text"
          @click="toDetail('https://gitee.com/howcode/has-chat')"
        >
          Gitee
        </li>
        <li class="line"></li>
        <li class="text" @click="toDetail('https://howcode.online')">
          howcode
        </li>
        <li class="line"></li>
        <li class="text" @click="toDetail('https://daishenghui.club')">
        </li>
      </ul>
    </div>
    <p @click="toDetail('https://beian.miit.gov.cn/')"></p>
  </div>
</template>

<style scoped lang="less">
.footer-box {
  width: 100%;
  height: auto;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    animation: colorChange 3s infinite linear;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 12px;
  @media screen and (max-width: 768px) {
    width: 100%;
  }

  .footer {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    @media screen and (max-width: 768px) {
      flex-direction: column;
      align-items: center;
    }
  }

  ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    @media screen and (max-width: 768px) {
      flex-direction: column;
      align-items: center;
    }

    .text {
      font-size: 16px;
      color: @primary-txcolor;
      font-weight: bold;
      cursor: pointer;
      margin: 5px 0;

      @media screen and (max-width: 768px) {
        font-size: 14px;
      }
    }

    .line {
      width: 2px;
      height: 15px;
      margin: 0 10px;
      background: @primary-txcolor;

      @media screen and (max-width: 768px) {
        display: none;
      }
    }
  }

  p {
    font-family: PingFangSC-Regular;
    font-size: 14px;
    color: @primary-txcolor;
    margin: 10px 0 0;
    cursor: pointer;
    text-align: center;

    @media screen and (max-width: 768px) {
      font-size: 12px;
    }
  }
  @keyframes colorChange {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
}
</style>
